package Factory;

/**
 * Created with IntelliJ IDEA.
 * User: breeze
 * Date: 11/15/12
 * Time: 10:11 AM
 * To change this template use File | Settings | File Templates.
 */
public class CheesePizza extends Pizza {

    PizzaIngredientFactory ingredientFactory;

    public CheesePizza(PizzaIngredientFactory ingredientFactory){
        this.ingredientFactory=ingredientFactory;
    }

    void prepare() {
        System.out.println("Preparing " + name);
//        dough = ingredientFactory.createDough();
//        sauce = ingredientFactory.createSauce();
//        cheese = ingredientFactory.createCheese();
    }
}
